
<script type="text/html" template>
  <link rel="stylesheet" href="{{ layui.setter.base }}style/login.css?v={{ layui.admin.v }}-1" media="all">
</script>


<div class="layadmin-user-login layadmin-user-display-show" id="LAY-user-login" style="display: none;">

  <div class="layadmin-user-login-main">
    <div class="layadmin-user-login-box layadmin-user-login-header">
      <h2>管理后台</h2>
      <p>ThinkPHP+Layui后台管理系统</p>
    </div>
    <div class="layadmin-user-login-box layadmin-user-login-body layui-form">
      <div class="layui-form-item">
        <label class="layadmin-user-login-icon layui-icon layui-icon-username" for="LAY-user-login-username"></label>
        <input type="text" name="name" id="LAY-user-login-username" lay-verify="required" placeholder="用户名" class="layui-input">
      </div>
      <div class="layui-form-item">
        <label class="layadmin-user-login-icon layui-icon layui-icon-password" for="LAY-user-login-password"></label>
        <input type="password" name="password" id="LAY-user-login-password" lay-verify="required" placeholder="密码" class="layui-input">
      </div>
      <div class="layui-form-item">
        <div class="layui-row">
          <div class="layui-col-xs7">
            <label class="layadmin-user-login-icon layui-icon layui-icon-vercode" for="LAY-user-login-vercode"></label>
            <input type="text" name="verifycode" id="LAY-user-login-vercode" placeholder="图形验证码" class="layui-input">
          </div>
          <div class="layui-col-xs5">
            <div style="margin-left: 10px;">
              <img src="" class="layadmin-user-login-codeimg" id="LAY-user-get-vercode">
              <input type="hidden" name="verifykey" id="LAY-user-login-verkey">
              <input type="hidden" name="type" value="1">
            </div>
          </div>
        </div>
      </div>

      <div class="layui-form-item">
        <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="LAY-user-login-submit" id="keyup">登 入</button>
      </div>

    </div>
  </div>
  <div class="layui-trans layadmin-user-login-footer">
    <p>© 2019 <a href="http://www.xinbr.com/" target="_blank">xinbr.com</a></p>
  </div>
</div>
<script>
layui.use(['admin', 'form', 'login','jquery'], function(){
  var $ = layui.$
  ,setter = layui.setter
  ,admin = layui.admin
  ,form = layui.form
  ,router = layui.router()
  ,search = router.search;
  var key = new Date().getTime();
  $("#LAY-user-get-vercode").attr("src",setter.api_captcha + '?verifykey=' + key);
  $("#LAY-user-login-verkey").val(key);
  form.render();
  $(document).keyup(function(event){
    if(event.keyCode==13){
        $("#keyup").trigger("click");
    }
  });
});
</script>